#-*- encoding: utf-8 -*-
'''
Created on 2011-4-19

@author: Bob
'''
from twisted.protocols.basic import Int32StringReceiver
from jxgame.proto.land_pb2 import GR_LogonResponse

class GameProtocol2(Int32StringReceiver):
    def __init__(self):
        pass
    
    def connectionMade(self):
        x = GR_LogonResponse()
        x.success = True
        x.server_info.kind_id = 1
        x.server_info.table_count = 30
        x.server_info.chair_count = 3
        x.server_info.video_addr = u'1.2.中文'
        self.sendString(x.SerializeToString())
        

    def stringReceived(self,string):
        pass
    
    def lengthLimitExceeded(self,length):
        pass
    

    
        